﻿using MindASPCoreWebAPI.IRepository.SystemManager;
using MindASPCoreWebAPI.PoModel.SystemManager;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MindASPCoreWebAPI.Service.SystemManager
{
    //行业逻辑层(BLL)
    public class IndustrialManagementService : BaseService
    {
        private IIndustrialManagementRepository _industrialManagementRepository;
        public IndustrialManagementService(IIndustrialManagementRepository industrialManagementRepository)
        {
            _industrialManagementRepository = industrialManagementRepository;
        }

        //分页显示
        public List<IndustryAdminModel> Show_IndustryAdminModel(out int totalcount,int pageindex, int pagesize, int? comstatus, string comname = "")
        {
            return _industrialManagementRepository.Show_IndustryAdminModel(out totalcount,pageindex, pagesize, comstatus, comname);

        }


        //添加
        public int Add_IndustryAdminModel(IndustryAdminModel industryadminModel)
        {
            return _industrialManagementRepository.Add_IndustryAdminModel(industryadminModel);
        }


        //删除
        public int Delete_IndustryAdminModel(int com_id)
        {
            return _industrialManagementRepository.Delete_IndustryAdminModel(com_id);
        }

        //编辑
        public IndustryAdminModel Edit_IndustryAdminModel(int com_id)
        {
            return _industrialManagementRepository.Edit_IndustryAdminModel(com_id);
        }

        //修改
        public int Update_IndustryAdminModel(IndustryAdminModel industryAdminModel)
        {
            return _industrialManagementRepository.Update_IndustryAdminModel(industryAdminModel);
        }


    }
}